package com.huluobo.appbase.ui

import android.os.Bundle
import androidx.fragment.app.FragmentActivity
import androidx.viewbinding.ViewBinding

/**
 * Created by lc on 2022/12/27.
 */
abstract class BaseActivity<T : ViewBinding> : FragmentActivity() {
    lateinit var mViewBinding: T

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mViewBinding = getViewBinding()
        setContentView(mViewBinding.root)
    }

    abstract fun getViewBinding(): T
}